You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a CSP spec change to clarify/define that default-src and connect-src with the keyword 'self' should match ws(s):// websocket schemas, i.e: Content-Security-Policy: default-src 'self' for https://example.com must not block connections to wss://example.com.
However, this wasn't implemented until Sep 17, 2018 in chromium/issues/detail?id=815142#c9 which according to the Chrome version history means that before v70 you must explicitly add your websocket URLs to either connect-src or default-src, e.g: Content-Security-Policy: default-src 'self'; connect-src 'self' wss://example.com
Malvoz
changed the title
[Support data question/correction] CSP 3's directive keyword 'self'` and websockets
CSP 3's directive keyword 'self'` and websockets
Aug 23, 2019
Malvoz
changed the title
CSP 3's directive keyword 'self'` and websockets
CSP's directive keyword 'self'` and websockets
Aug 23, 2019
Uh oh!
There was an error while loading. Please reload this page.
There was a CSP spec change to clarify/define that
default-src
andconnect-src
with the keyword'self'
should matchws(s)://
websocket schemas, i.e:Content-Security-Policy: default-src 'self'
forhttps://example.com
must not block connections towss://example.com
.However, this wasn't implemented until Sep 17, 2018 in chromium/issues/detail?id=815142#c9 which according to the Chrome version history means that before v70 you must explicitly add your websocket URLs to either
connect-src
ordefault-src
, e.g:Content-Security-Policy: default-src 'self'; connect-src 'self' wss://example.com
This issues is a pretty big deal, so there should be a note. It may also be that Safari (w3c/webappsec-csp#7 (comment)), Edge (w3c/webappsec-csp#7 (comment)) and perhaps other browsers still haven't implemented this.
The text was updated successfully, but these errors were encountered: